<?php
require_once 'includes/config.php';

class InputHandler {
	public function inputTextRename($strPath, $strOldItem, $strNewItem) {
		$bRename = rename($strPath . SLASH . $strOldItem, $strPath . SLASH . $strNewItem);
		
		if($bRename) {
			header("Location: index.php?path=" . $strPath);
			exit;
		}
		else {
			header("Location: index.php?path=" . $strPath . "&error=rename");
			exit;
		}
	}
}
?>